package xyz.xiaoshengfu.bookstore.pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class TbBook implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private String name;

	private String author;

	private String press;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date publicationTime;

	private Integer pagesNumber;

	private Long price;

	private String bindingLayout;

	private String series;

	private String isbn;

	private Boolean isDeleted;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author == null ? null : author.trim();
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press == null ? null : press.trim();
	}

	public Date getPublicationTime() {
		return publicationTime;
	}

	public void setPublicationTime(Date publicationTime) {
		this.publicationTime = publicationTime;
	}

	public Integer getPagesNumber() {
		return pagesNumber;
	}

	public void setPagesNumber(Integer pagesNumber) {
		this.pagesNumber = pagesNumber;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public String getBindingLayout() {
		return bindingLayout;
	}

	public void setBindingLayout(String bindingLayout) {
		this.bindingLayout = bindingLayout == null ? null : bindingLayout.trim();
	}

	public String getSeries() {
		return series;
	}

	public void setSeries(String series) {
		this.series = series == null ? null : series.trim();
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn == null ? null : isbn.trim();
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	@Override
	public String toString() {
		return "{id:" + id + ", name:\"" + name + "\", author:\"" + author + "\", press:\"" + press
				+ "\", publicationTime:" + publicationTime.getTime() + ", pagesNumber:" + pagesNumber + ", price:"
				+ price + ", bindingLayout:\"" + bindingLayout + "\", series:\"" + series + "\", isbn:\"" + isbn
				+ "\", isDeleted:" + isDeleted + "}";
	}

}